/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: VisitorDecorator.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/4 下午10:32
 * LastModified: 2020/03/04 22:32:04
 */

package com.qolome.knowledge.design.pattern.decorator.demo;

import java.util.Arrays;
import java.util.Set;

/**
 * @author Qolome
 * @version V1.0
 * @Description 管理员
 * @date 2020年 03月04日 22:32:27
 */
public class AdminDecorator extends NavigationDecorator{

    public AdminDecorator(Navigation navigation) {
        super(navigation);
    }

    @Override
    protected Set<String> getNavigation() {
        Set<String> navigation = super.getNavigation();
        navigation.addAll(Arrays.asList("系统管理","负载管理"));
        return navigation;
    }
}
